#ifndef TCPClient_h
#define TCPClient_h

#include "network.h"
#include <string>
#include <list>

using namespace std;

// 向霓廊打印机发送数据
class CTCPClient : public CNetwork
{
public:
    CTCPClient();

    virtual ~CTCPClient();

    bool Init() override;

    bool Run() override;

    bool SendData(char* pData, int nLen) override;

    bool SendPackage(vector<char>& vNLPackage);

    /**
     * 获取霓廊打印机数据
     */
    bool GetPackage(vector<char>& vNLPackage);

    /**
     * 判断打印机是否接收命令
     */
    bool AcceptCommond(vector<char>& vNLPackage);

    /**
     * 获取以FS拆分后的数据包
     */
    bool GetFSPackage(char* pData, int nLen, list<string>& fsPackages);

public:
};

#endif // TCPClient_h